<?php

/**
 * Subclass for performing query and update operations on the 'horario' table.
 *
 *
 *
 * @package lib.model
 */
class HorarioPeer extends BaseHorarioPeer
{
  static public function getActivosByUsuarioId($id){
    $c = new Criteria();
    $c->add(self::USUARIO_ID,$id);
    $c->add(self::ACTIVO,1);
    return self::doSelect($c);
  }
   static public function getByDiaIdUsuarioId($dia_id,$usuario_id){
    $c = new Criteria();
    $c->add(self::USUARIO_ID,$usuario_id);
    $c->add(self::DIA_ID,$dia_id);
    return self::doSelectOne($c);
  }

}
